package com.canbot.u05.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.canbot.u05.R;
import com.canbot.u05.socket.MsgSendUtils;
import com.canbot.u05.socket.MsgType;
import com.canbot.u05.utils.ToastTools;


/**
 * 手持pad  语音设置
 */
public class VoiceSettingActivity extends BaseActivityNoTitle {

        private VoiceSettingActivity mContext;

        private ToastTools toastTools;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.act_voice_setting);
                toastTools = ToastTools.newInstance(this);
                mContext = this;
        }

        @Override
        protected void onResume() {
                super.onResume();
        }


        public void back(View view) {
                //停止播放音频
                MsgSendUtils.sendStringMsg(MsgType.STOP_SOUND, "stop_sound");
                finish();
        }



        /**
         * 跳转到开机语音
         * @param view
         */
        public void bootVoice(View view) {
                startActivity(new Intent(this,StarttheVoiceActivity.class));
        }

        /**
         * 跳转到触摸感应器语音
         * @param view
         */
        public void touchSensor(View view) {
                startActivity(new Intent(this,TouchSensorVoiceActivity.class));
        }


}
